<?php

if (!defined("IN_OP"))
{
    exit("You can't access this file directly...");
}
if (!isset($idxGametype))
{
    header("Location: op.php");
    exit();
}
$ui = new UI_3D(false, G_SITENAME);
$tpl = new Template2();
if ($g_init_mode_6h)
{
    $default_3d_top_src = "op.php?op=admin&fp=title&gametype=0";
    $default_3d = "op.php?op=admin&fp=login&gametype=0";
}
else if ($g_init_mode_3d)
{
    $default_3d_top_src = "op.php?op=admin&fp=title_3d&gametype={$idxGametype}";
    $default_3d = "op.php?op=admin&fp=login_3d&gametype={$idxGametype}";
}
$tpl->set("default_3d_top_src", $default_3d_top_src);
$tpl->set("default_3d", $default_3d);
$tpl->load("main", "index_3d.htm");
$ui->header();
$tpl->show("main");
$ui->footer();
?>